﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Media;
using Microsoft.Xna.Framework.Net;
using Microsoft.Xna.Framework.Storage;

namespace dungeon_brawler.classes
{
    public class Warrior : Player
    {

        public Warrior(int lvl, Vector2 position, Texture2D texture)
            : base(lvl, position, texture)
        {
            // Add the class specific modifers
            atk += 15;
            def += 25;
            hp += 10;
            // Set the cooldown per attack
            cooldown = .75;
            // Set offsets
            atkOffset = 16;
            collisionOffset = 0;
            // Lvl up according to level
            lvlUp(lvl);
            direction.X = direction.Y = spd = 2;
        }



        /// <summary>
        /// Returns class stats
        /// </summary>
        /// <returns>String</returns>
        public override String ToString()
        {
            return GetType() +
                base.ToString();
        }
    }
}
